package com.by.yz.entity;


import java.io.Serializable;
import java.util.Date;

/**评论表
 * Created by mrs yang on 2016/10/27.
 */
public class Comment implements Serializable {

    private String title;
    private Integer id;
    private String content;//内容
    private int count;//评论数
    private String commenter;//评论人
    private TopicInfo topic;


    public Comment(){

    }
    public Comment(Integer id,String content,String commenter,int count,TopicInfo topic){
        this.id=id;
        this.topic=topic;
        this.content=content;
        this.commenter=commenter;
        this.count=count;
    }

    public void setId(Integer id){
        this.id=id;
    }
    public Integer getId(){
        return id;
    }
    public void setContent(String content){
        this.content=content;
    }
    public String getContent(){
        return  content;
    }
    public void setCount(int count){
        this.count=count;
    }
    public int getCount(){
        return count;
    }
    public void setCommenter(String commenter){
        this.commenter=commenter;
    }
    public String getCommenter(){
        return commenter;
    }
    public void setTopic(TopicInfo topic){
        this.topic=topic;
    }
    public TopicInfo getTopic(){
        return topic;
    }
}
